<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../build/react.js"></script>
    <script src="../build/react-dom.js"></script>
    <script src="../build/browser.min.js"></script>
</head>
<body>
<div id="example"></div>
<script type="text/babel">
    var HelloMessage = React.createClass({
        getDefaultProps: function () {
            return {
                name: '张欢',
            }
        },
        render: function () {
            return <h1>hello, {this.props.name}</h1>
        }
    });
    ReactDOM.render(
        <HelloMessage name="何树东"/>,
        document.getElementById('example')
    );
</script>
</body>
</html>